Package-level declarations

Types

Link copied to clipboard

a validated set of choices.

Link copied to clipboard
open class ValidatedAny<T : Any>(defaultValue: T) : ValidatedField<T> , EntryParent

Validation for an arbitrary non-null POJO (Plain Old Java Object). It will create a "mini-config" popup with the same style of list as the main config and section screens. Each field within the object will be validated just like a config, either automatically or purposefully if ValidatedFeilds are used.

Link copied to clipboard
open class ValidatedBoolean(defaultValue: Boolean) : ValidatedField<Boolean>

a validated boolean value

Link copied to clipboard
open class ValidatedChoice<T> @JvmOverloads constructor(defaultValue: T, choices: List<T>, handler: EntryHandler<T>, translationProvider: BiFunction<T, String, MutableText> = BiFunction { t, _ -> t.transLit(t.toString()) }, descriptionProvider: BiFunction<T, String, Text> = BiFunction { t, _ -> t.descLit("") }, widgetType: ValidatedChoice.WidgetType = WidgetType.POPUP) : ValidatedField<T>

A validated set of choices of any type

Link copied to clipboard

A validated color value

Link copied to clipboard

a validated value with a fallback that is supplied if provided conditions aren't passed

Link copied to clipboard
open class ValidatedEnum<T : Enum<*>> @JvmOverloads constructor(defaultValue: T, widgetType: ValidatedEnum.WidgetType = WidgetType.POPUP) : ValidatedField<T>

A validated Enum Class

Link copied to clipboard
open class ValidatedExpression @JvmOverloads constructor(defaultValue: String, validVars: Set<Char> = setOf(), validator: EntryValidator<String> = object: EntryValidator<String> { override fun validateEntry(input: String, type: EntryValidator.ValidationType): ValidationResult<String> { return Expression.tryTest(input, validVars).wrap(input) } override fun toString(): String { return "Dummy test with valid variable chars" } }) : ValidatedField<String> , Expression

A validated math expression

Link copied to clipboard
open class ValidatedMapped<N, T> @JvmOverloads constructor(delegate: ValidatedField<T>, to: Function<T, out N>, from: Function<in N, T>, defaultValue: N = to.apply(delegate.get())) : ValidatedField<N>

Represents a ValidatedField mapped to another value representable by the wrapped delegate

Link copied to clipboard
open class ValidatedPair<A, B> @JvmOverloads constructor(defaultValue: ValidatedPair.Tuple<A, B>, leftHandler: Entry<A, *>, rightHandler: Entry<B, *>, layoutStyle: ValidatedPair.LayoutStyle = LayoutStyle.SIDE_BY_SIDE) : ValidatedField<ValidatedPair.Tuple<A, B>>

A validated pair of values

Link copied to clipboard
open class ValidatedString(defaultValue: String, checker: EntryChecker<String>) : ValidatedField<String>

A validated string value